class Picture < Asset
  has_attachment  :content_type => :image,
                  :storage => :file_system,
                  :max_size => 5.megabytes,
                  :processor => IMAGE_PROCESSOR,
                  :thumbnails => { :thumb => [100, 100], :content => '320>', :big => '600>' }

  validates_as_attachment
  
  def url_content
	  public_filename(:content)
	end
	
	def url_thumb
	  public_filename(:thumb)
	end
	
	def to_json(options = {})
	  options[:methods] ||= []
	  options[:methods] << :url_content
	  options[:methods] << :url_thumb
	  super options
  end

end
